﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MediaBusiness.Common
{
    /// <summary>
    /// 资源标签
    /// 如果多个资源标签一致，需要合并
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = false, Inherited = true)]
    public class PermissionResourceAttribute : System.Attribute
    {
        /// <summary>
        ///
        /// </summary>
        /// <param name="name">资源名称</param>
        public PermissionResourceAttribute(string name)
        {
            Name = name;

        }

        /// <summary>
        /// 资源名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 资源描述
        /// </summary>     
        public string Summary { get; set; }
    }
}
